<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>用户认证 - <?php echo $cfg_webname; ?></title>
<link href="templets/style/css/reset.css" rel="stylesheet" type="text/css">
<link href="templets/style/css/member.css" rel="stylesheet" type="text/css">
<script src="<?php echo $cfg_skin;?>/js/jquery-1.7-min.js" type="text/javascript"></script> 
</head>
<body>
<div class="cl" id="header"></div>
<!--head-->
<?php include(DEDEMEMBER. "/templets/head.htm"); ?>

<div class="main">

<?php include(DEDEMEMBER."/templets/menu.php"); ?> 

<div class="main_right">

<div class="common_title">用户认证列表</div>
  <div class="rz-list-search">
            <form action="rzlist.php" method="post">
              <input type="hidden" name="dopost" value="search" />
              <span>搜索用户：</span>
              <input type="text" class="rz-list-s" name="k" value="" placeholder="输入用户登录名进行搜索" />
              	<input class="submit_buttonn" value="搜索" type="submit"> 
            </form>
    </div>
        <?php if($dopost=='' || $dopost=='search'){
        ?>
        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="szmx">
          <thead>
              <tr class="tr1">
                <th width="7%" height="25">用户</th>
                <th width="10%">姓名</th>
                <th>身份证</th>
                <th>电话</th>
                <th>QQ</th>
                <th>支付宝</th>
                <th width="15%">时间</th>
                <th width="10%">状态</th>
              </tr>
          </thead>
            <tbody>
            {dede:datalist}
            <tr class="op-list">
              <td align="center"><a href="rzlist.php?dopost=read&id={dede:field.mid/}">{dede:field.userid/}</a></td>
              <td align="center">{dede:field.zuname/}</td>
              <td align="center"><?php
              $usfz = $fields['usfz'];
              if($fields['usfzzp']==''){
              	echo '<font color=red title=未上传身份证照片>".$usfz."</font>';
              }else{
              	echo $usfz;
              }
              ?></a></td>
              <td align="center">{dede:field.utel/}</td>
              <td align="center">{dede:field.uqq/}</td>
              <td align="center">{dede:field.uzfb/}</td>
              <td align="center">{dede:field.utime function="MyDate('Y-m-d',@me)" /}</td>
              <td align="center"><?php if($fields['sta']==0 || $fields['sta']==1) echo "<a href='rzlist.php?dopost=read&id=".$fields['mid']."'><font color=red>未审核</font></a>"; else if($fields['sta']==2) echo "<a href='rzlist.php?dopost=read&id=".$fields['mid']."'><font color=red>被拒绝</font></a>"; else echo "<a href='rzlist.php?dopost=read&id=".$fields['mid']."'>已通过</a>";?></td>
            </tr>
            {/dede:datalist}
            </tbody>
          <tfoot>
            <tr>
              <td colspan="7">
              	<div class="pageList">
                	{dede:pagelist listsize=5/}
                </div>
              </td>
            </tr>
          </tfoot>
    </table>
    <?php }else{ ?>
    <ul class="read-rz">
    	<li><span>真实姓名：</span><?php echo $row['zuname'];?></li>
        <li><span>身份证号：</span><?php echo $row['usfz'];?></li>
        <li><span>身份证照：</span><?php if($row['usfzzp']!='') echo "<a data-pop='sfzzp'>已上传点击查看</a>";?></li>
        <li><span>电话号码：</span><?php echo $row['utel'];?></li>
        <li><span>QQ号码：</span><?php echo $row['uqq'];?></li>
        <li><span>支付宝：</span><?php echo $row['uzfb'];?></li>
        <li><span>申请时间：</span><?php echo MyDate('Y-m-d',$row['utime']);?></li>
        <li><span>状态：</span><?php echo $row['sta'];?></li>
        <?php if($row['sta']=='<font color=red>被拒绝</font>'){ ?>
        <li><span>拒绝原因：</span><?php echo $row['jjyy'];?></li>
        <?php } ?>
        <?php if($row['sta']!='已通过'){ ?>
        <li><span>操作：</span><a href="rzlist.php?dopost=rzcl&cz=tg&rzid=<?php echo $row['mid'];?>&pid=<?php echo $pid;?>" onclick="javascript:return confirm('确认通过吗？');">审核通过</a><a data-pop="rzbtg">审核不通过</a></li>
        <?php } ?>
    </ul>
    <?php } ?>
  </div>
</div>
</div>
<div id="sfzzp" class="popupbox"> 
   <div class="popupbox-header">
     <?php echo $row['zuname'];?>的身份证照片
    <a class="popup-close">&times;</a> 
   </div> 
   <div class="popupbox-content"> 
    <div class="popdows popbox-cont-t">
      <p>点击图片可查看大图</p>
      <a href="<?php echo $row['usfzzp'];?>" target="_blank"><img src="<?php echo $row['usfzzp'];?>" /></a>
    </div> 
  </div> 
</div>
<div id="rzbtg" class="popupbox"> 
   <div class="popupbox-header">
     认证审核
    <a class="popup-close">&times;</a> 
   </div> 
   <div class="popupbox-content"> 
    <div class="popdows popbox-cont-t">
      <form method="post" action="rzlist.php" name="form1">
        <input type="hidden" name="dopost" value="rzcl">
        <input type="hidden" name="cz" value="btg">
        <input type="hidden" name="rzid" value="<?php echo $row['mid'];?>">
        <input type="hidden" name="pid" value="<?php echo $pid;?>">
        <div class="login liuyan">
          <p><span class="float_l">请填写审核不通过原因：</span></p>
          <ul class="arc-loginlist">
            <li class="uname">
              <textarea name="btgcont" class="srk" placeholder="审核不通过原因" required="required"></textarea>
            </li>
          </ul>
        </div>
        <div class="pop-sub">
          <button type="submit" class="popup-ok arc-loginBtn">提交</button>
        </div>
      </form>
    </div> 
  </div> 
</div>


</div>

</div>

<!--footer-->
<?php include(DEDEMEMBER. "/templets/footer.htm"); ?>
	<!--i-buy和topbuy是必须要的否则反馈调用会出现问题-->
  <div class="i-buy" id="ibuy" style="display:none;"></div>
  <div id="topbuy" style="display:none;"></div>
  <div id="liuyan" class="popupbox"> 
   <div class="popupbox-header">
     <span id="fmsgtitle">反馈/在线客服</span>
    <a class="popup-close">×</a> 
   </div> 
   <div class="popupbox-content"> 
    <div class="popdows popbox-cont-t" id="liuyancont"></div> 
  </div> 
</div>
<script src="{dede:global.cfg_cmsurl/}/i/common.php" language="javascript"></script>
<script type="text/javascript" src="{dede:global.cfg_skin/}/js/functions.min.js?ver=1.0"></script>
<script>
	//左边导航
	var as = document.querySelectorAll('.left_menu a');
	var spans = document.querySelectorAll('.left_menu .icons');
	for(var i=0,len=as.length;i<len;i++){
		
		spans[i].clazz = spans[i].className;
		as[i].index = i;
		as[i].onmouseenter = mouseenterHandler;
		as[i].onmouseleave = mouseleaseHandler;
	}
	function mouseenterHandler(e){
		if(!/_h$/.test(spans[this.index].clazz)){
			spans[this.index].className = spans[this.index].clazz + '_h';
		}
	}
	function mouseleaseHandler(e){
		spans[this.index].className = spans[this.index].clazz;
	}
	
	//左右等高布局
	var main_left = document.querySelector('.main_left');
	var main_right = document.querySelector('.main_right');
	if(main_left.offsetHeight<main_right.offsetHeight){
		main_left.style.height = main_right.offsetHeight + 'px';
	}
</script>

</body>
</html>